<template>
  <div class="search">
    <h2>{{ startTime }}</h2>
    <h2>{{ endTime }}</h2>
    <h2>您的搜索:{{ $route.query.keyword }}</h2>
  </div>
</template>

<script setup>
import useMainStore from '@/stores/modules/main';
import { computed } from 'vue';
import { useRoute } from "vue-router"
import { formatMonthDay } from "@/utils/format_date"
const mainStore = useMainStore()
const startTime = computed(() => formatMonthDay(mainStore.startDate))
const endTime = computed(() => formatMonthDay(mainStore.endDate))
const route = useRoute()
console.log(route.query)
</script>

<style lang="less" scoped>

</style>